package com.zs.usc.mapper;

import com.zs.usc.entity.MenuInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ZS
 * @since 2021-12-11
 */
@Mapper
public interface MenuInfoMapper extends BaseMapper<MenuInfo> {

    /**
     * 查询用户所有权限
     * @param uid 用户id
     * @param appCode 应用编码（非必填：为空时查询所有权限）
     * @return
     */
    List<MenuInfo> listMenu(@Param("userId") String uid, @Param("appCode") String appCode);
}
